//
//  CYCallRecord.h
//  CreditAddressBook
//
//  Created by Lee on 15/6/8.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CYCallHistory.h"
@class CYPerson;

typedef NS_ENUM(NSInteger, CYCallRecordType) {
    CYCallRecordTypeDefault = 0,
    CYCallRecordTypeABData,
    CYCallRecordTypeCollectionData
};

@interface CYCallRecord : NSObject

@property (nonatomic, strong) CYPerson *person;
@property (nonatomic, strong) CYCallHistory *callHistory;

/**姓名*/
@property (nonatomic, copy, readonly) NSString *callName;

/**是否展示通话时长View*/
@property (nonatomic, assign) BOOL showTimeView;

/**通话时长*/
@property (nonatomic, copy) NSString *callDuration;

/**通话总时长*/
@property (nonatomic, copy) NSString *callDurationSum;

/**通话总时长(拨号界面)*/
@property (nonatomic, copy) NSString *callDurationSum1;

/**是否展示通话次数view*/
@property (nonatomic, assign) BOOL showTimesImageView;

/**通话次数*/
@property (nonatomic, copy) NSString *times;

/**数据标识*/
@property (nonatomic, strong) NSIndexPath *indexPath;

/**最近一次通话时间*/
@property (nonatomic, copy) NSString *newlyCallDate;

/**最近一次通话时间(通话记录)*/
@property (nonatomic, copy) NSString *newlyCallDate1;

@property (nonatomic, strong) UIImage *thumbnailLocal;

@property (nonatomic, assign) CYCallRecordType dataType;

+ (instancetype)callRecord;

@end
